<html jwcid="@Shell" title="Currency">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Currency</title>

        <link jwcid="@Style" href="info.css" media="all"/>

    </head>
    <body jwcid="@Body">

        <table width="100%" border="1">
            <tr>

       <td width="90%">
       <span jwcid="@Phones"/>
       </td>

       <td width="10%" align="center">
       <span jwcid="@ChargeButton" serviceID="ognl:@ge.info.pages.CurrencyPage@SERVICE_ID"></span>
       </td>
           </tr>
       </table>
       <br>

        <input jwcid="@Errors" exceptions='ognl:exceptions'/>
        <br>
        <br>


        <form jwcid="@Form" delegate="ognl:page.delegate">

            <table>
                <tr>
                    <td>
                        <table border="0">
                            <tr>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:1" listener="listener:changeToCurrency">
                                        <img jwcid="@Image" image="asset:georgia" alt="GEL" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:3" listener="listener:changeToCurrency">
                                        <img jwcid="@Image" image="asset:usa" alt="USA" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:37" listener="listener:changeToCurrency">
                                        <img jwcid="@Image" image="asset:evro" alt="EURO" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:12" listener="listener:changeToCurrency">
                                        <img jwcid="@Image" image="asset:british" alt="British pound" width="38" height="24"/>
                                    </a>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:4" listener="listener:changeToCurrency">
                                        <img jwcid="@Image" image="asset:turkey"   alt="Turk. lira" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:5" listener="listener:changeToCurrency">
                                        <img jwcid="@Image" image="asset:russian" alt="Russ ruble" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:9" listener="listener:changeToCurrency">
                                        <img jwcid="@Image" image="asset:azer"   alt="Azer. manat" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:6" listener="listener:changeToCurrency">
                                        <img jwcid="@Image" image="asset:armenia"   alt="Armen. dr" width="38" height="24"/>
                                    </a>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" align="center">
                                    <input jwcid="@PropertySelection" model='ognl:page.getComboes().getCombo("Currencies")'
                                           value='ognl:toCurrency'> NABC </input>
                                </td>
                            </tr>
                        </table>

                    </td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <td>

                        <table border="0">
                            <tr>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:1" listener="listener:changeFromCurrency">
                                        <img jwcid="@Image" image="asset:georgia" alt="GEL" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:3" listener="listener:changeFromCurrency">
                                        <img jwcid="@Image" image="asset:usa" alt="USA" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:37" listener="listener:changeFromCurrency">
                                        <img jwcid="@Image" image="asset:evro" alt="EURO" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:12" listener="listener:changeFromCurrency">
                                        <img jwcid="@Image" image="asset:british" alt="British pound" width="38" height="24"/>
                                    </a>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:4" listener="listener:changeFromCurrency">
                                        <img jwcid="@Image" image="asset:turkey"  alt="Turk. lira" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:5" listener="listener:changeFromCurrency">
                                        <img jwcid="@Image" image="asset:russian" alt="Russ ruble" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:9" listener="listener:changeFromCurrency">
                                        <img jwcid="@Image" image="asset:azer"  alt="Azer. manat" width="38" height="24"/>
                                    </a>
                                </td>
                                <td align="center">
                                    <a jwcid="@DirectLink" parameters="literal:6" listener="listener:changeFromCurrency">
                                        <img jwcid="@Image" image="asset:armenia"   alt="Armen. dr" width="38" height="24"/>
                                    </a>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" align="center">
                                    <input jwcid="@PropertySelection" model='ognl:page.getComboes().getCombo("Currencies")'
                                           value='ognl:fromCurrency'> NABC </input>
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
                <tr>
                    <td  colspan="2">
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="Submit" jwcid="@Submit" parameters="ognl:currency" value="SMS" style="width: 35px" action="listener:sendSMSamount"/>
                         <!--input jwcid="@DatePicker" value="ognl:scDate" style="width: 85px"/> &nbsp;&nbsp; -->
                        <input jwcid="@TextField" value="ognl:amount" validators="validators:$numericValidator" align="right" size="30px"/>
                        <span jwcid="@If" condition="ognl: amount!=null">
                            <input jwcid="@Insert" value='ognl: toCurrency.curName + " = " + fromCurrency.convertAmountTo(toCurrency,amount) + " "  +  fromCurrency.curName '/>
                        &nbsp;&nbsp;
                       &nbsp;&nbsp;
         <font color="#C11B17">
         შესყიდვის კურსი:
         &nbsp;&nbsp;
                             <input jwcid="@Insert" value='ognl: toCurrency.curName + " = " + fromCurrency.convertAmountMTo(toCurrency,amount) + " "  +  fromCurrency.curName '/>
       /
       &nbsp;&nbsp;
        გაყიდვის კურსი:
         &nbsp;&nbsp;
                             <input jwcid="@Insert" value='ognl: toCurrency.curName + " = " + fromCurrency.convertAmountSmTo(toCurrency,amount) + " "  +  fromCurrency.curName '/>
        </font>
                        </span>

                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input jwcid="@Submit" action="listener:convert" value="convert"/>
                    </td>
                </tr>
            </table>
        </form>
        <hr>
            <form jwcid="@Form">
           
        <span jwcid="@If" condition="ognl:toCurrency.curName != null">
            
            
            <input jwcid="@Insert" value='ognl: "1 " + toCurrency.curName + " = " +  fromCurrency.convertTo(toCurrency) + " "  +  fromCurrency.curName '/>
         
         <!-- toCurrency.unit + -->

         &nbsp;&nbsp;
          &nbsp;&nbsp;
         <font color="#C11B17">
        შესყიდვის კურსი:
         &nbsp;&nbsp;
       
        <input jwcid="@Insert" value='ognl: "1 " + toCurrency.curName + " = " +  fromCurrency.convertMTo(toCurrency) + " "  +  fromCurrency.curName '/>
        
       /
        &nbsp;&nbsp;
         გაყიდვის კურსი:
         &nbsp;&nbsp;
        <input jwcid="@Insert" value='ognl: "1 " + " "  + toCurrency.curName + " = " +  fromCurrency.convertSmTo(toCurrency) + " "  +  fromCurrency.curName '/>
         </font>
         &nbsp;&nbsp;
          <input type="Submit" jwcid="@Submit" parameters="ognl:currency" value="SMS" style="width: 35px" action="listener:sendSMS"/>
        </span>
</form>
        <br><br><br>
        <form jwcid="@Form" listener="listener:getCountryCurrency">
            <input jwcid="@PropertySelection" model='ognl:page.getComboes().getCombo("CurrencyCountries")'
                   value='ognl:country'  onchange="javascript:   this.form.events.submit()"/>   &nbsp;&nbsp;&nbsp;
            <input jwcid="@Insert" value='ognl:countryCurrencyName'/>
        </form>

        <form jwcid="@Form" listener="listener:findCountry">
            ვალუტის ძებნა <input jwcid="@TextField" value='ognl:currencyName'/>
            <input jwcid="@Submit" value="Search"/>
        </form>
        <span jwcid="@For" source="ognl:currencyNames" value="ognl:currencyName">
            <input jwcid="@Insert" value='ognl: currencyName'/> <br>
        </span>
    </body>

</html>